#pragma once
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
#include<assert.h>

#define HPData int

typedef struct HPNode
{
	HPData* arr;
	int size;
	int capacity;
}HPNode;

void HPCreat(HPNode* hp, HPData* arr, int n);

void HPInit(HPNode* hp);

void HPDestroy(HPNode* hp);

void HPPush(HPNode* hp, HPData x);

void HPPop(HPNode* hp);

HPData HPTop(HPNode* hp);

bool HPEmpty(HPNode* hp);

int HPSize(HPNode* hp);